package com.ad.pet.common.structure;

import android.os.Looper;

/**
 * Created by z on.
 * Des:线程检查
 * Date: 2017/3/22
 */

public class ThreadCheck {

    public static boolean hasMainThread() {
        return Looper.myLooper() == Looper.getMainLooper();
    }
}
